<?php
// +----------------------------------------------------------------------
// | WoShiMaiJia Projcet 
// +----------------------------------------------------------------------
// | Copyright (c) 2010-2011 http://woshimaijia.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: xinqiyang <xinqiyang@gmail.com>
// +----------------------------------------------------------------------

class TestAction extends Action
{
	
	public function index()
	{
		Base::instance('Captcha')->generate();
	}
	
	public function testlock()
	{
		$lock = Base::instance('Lock');
		$lock->lock();
		echo "lock";
		$lock->unlock();
	}
	
	public function testpage()
	{
		$totalRows = 200;
		$listRow = 30;
		$page = new Page($totalRows,$listRow);
		echo $page->show();
	}
}